package cn.wolfcode.demo.controlller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yh
 */
@RestController
public class HelloController {
    @RequestMapping("/get")
    public Object get(String name) {
        return name;
    }

    @RequestMapping("/hello")
    public Object hello() {
        return "Hello word";
    }
}
